package service

import (
	"monthly-test/global"
	"monthly-test/internal/model/dao"
)

func GetUserById(id int) error {
	var user dao.User
	err := global.DB.Where("id = ?", id).First(&user).Error
	if err != nil {
		return err
	}
	return nil
}
